import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/holidayDetailed/` + url, ...arg)

/**
 * 假期明细Api接口管理器
 *
 * @author 罗超
 * @date  2024/01/18 21:08
 **/
export default {
	// 获取假期明细分页
	sysHolidayAccountDetailedPage(data) {
		return request('page', data, 'get')
	},
	// 提交假期明细表单 edit为true时为编辑，默认为新增
	sysHolidayAccountDetailedSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除假期明细
	sysHolidayAccountDetailedDelete(data) {
		return request('delete', data)
	},
	// 获取假期明细详情
	sysHolidayAccountDetailedDetail(data) {
		return request('detail', data, 'get')
	}
}
